package org.spring.springboot.domain;
import org.json.JSONObject;


public class Pattern {
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    private  String name;

    public String getLinedefs() {
        return linedefs;
    }

    public String getDescription() {
        return description;
    }

    private  String linedefs;

    public void setLinedefs(String linedefs) {
        this.linedefs = linedefs;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    private  String description;

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }

    private  int index;

    public JSONObject toJson(){
        JSONObject obj = new JSONObject();
        obj.put("name",this.name);
        obj.put("linedefs",this.linedefs);
        obj.put("description",this.description);
        obj.put("index",this.index);
        return obj;
    }
}
